﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace Djs.HW.Util.MsCommPort
{
	public class CheckBoxGraph : CheckBox
	{
		public CheckBoxGraph()
		{
			_Setting();
		}
		private void _Setting()
		{
			this.Appearance = System.Windows.Forms.Appearance.Button;
			this.BackColor = System.Drawing.SystemColors.Info;
			this.Location = new System.Drawing.Point(6, 58);
			this.Size = new System.Drawing.Size(103, 33);
			this.TabIndex = 2;
			this.Text = "Status";
			this.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			this.UseVisualStyleBackColor = false;
			this.CheckedChanged += new EventHandler(CheckBoxGraph_CheckedChanged);
		}

		void CheckBoxGraph_CheckedChanged(object sender, EventArgs e)
		{
			if (this.Checked)
				this.BackColor = Color.LightSalmon;
			else
				this.BackColor = Color.LightGray;
		}
	}
}
